<?php
/**
 * Created by PhpStorm.
 * User: zing
 * Date: 2018/5/7
 * Time: 21:42
 */


$buy_ticket = [
    [
        ['supplier_ticket_id' => 1, 'biz_ticket_id' => 25694, 'buy_num' => 10, 'ticket_sale_price' => 100],
        ['supplier_ticket_id' => 2, 'biz_ticket_id' => 25694, 'buy_num' => 12, 'ticket_sale_price' => 50],
        ['supplier_ticket_id' => 3, 'biz_ticket_id' => 173, 'buy_num' => 12, 'ticket_sale_price' => 50],
        ['supplier_ticket_id' => 4, 'biz_ticket_id' => 189, 'buy_num' => 12, 'ticket_sale_price' => 50],
    ],
    [
        ['supplier_ticket_id' => 5, 'biz_ticket_id' => 25694, 'buy_num' => 10, 'ticket_sale_price' => 100],
        ['supplier_ticket_id' => 6, 'biz_ticket_id' => 25694, 'buy_num' => 12, 'ticket_sale_price' => 50],
        ['supplier_ticket_id' => 7, 'biz_ticket_id' => 173, 'buy_num' => 12, 'ticket_sale_price' => 50],
        ['supplier_ticket_id' => 8, 'biz_ticket_id' => 189, 'buy_num' => 12, 'ticket_sale_price' => 50],
    ]

];


function array_add_column(&$ticket)
{
    foreach ($ticket as &$t) {

        if ($t['supplier_ticket_id'] % 2) {
            $t['is_special'] = 0;
        } else {
            $t['is_special'] = 1;
        }
    }
}

array_walk($buy_ticket, 'array_add_column');

print_r($buy_ticket);